import instance from '../http'


export const getTags = () => {
    return instance({
        url:"/tags/",
        method:"get"
    })
}

export const deleteTag =(id)=>{
    return instance({
        url:"/tags/"+id+"/",
        method: "delete"
    })
}


export const addTag = (data)=>{
    return instance({
        url:"/tags/",
        method:"post",
        data
    })
}